using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Chapter7CustomControlsCS
{
    [LicenseProvider(typeof(MyLicensingProvider))]
    [ToolboxData("<{0}:BookSearch runat=server></{0}:BookSearch>")]
    public class BookSearch : WebControl
    {
        System.ComponentModel.License lic;
        public  BookSearch()
        {
        lic = LicenseManager.Validate(typeof(BookSearch), this);
        }

        protected override void CreateChildControls()
        {
            System.Web.UI.WebControls.TextBox txt = new System.Web.UI.WebControls.TextBox();
            this.Controls.Add(txt);
        }
        
        public override void  Dispose()
         {
            if(lic != null)
        {
            lic.Dispose();
            lic = null;
        }
}

    }
}
